<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>账号登录-<?php echo $cfg_webname;?></title>
<link type="text/css" rel="stylesheet" href="<?php echo $cfg_basehost;?>/oauth/wechat/css/pclogin.css"/>
<script src="<?php echo $cfg_basehost;?>/js/reg_new_j.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/reg_new.js"></script>
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/tjtyrt.js"></script>
<script>var domain = '<?php echo $cfg_basehost;?>';</script>
<script src="<?php echo $cfg_basehost;?>/oauth/wechat/js/wxlogin.js"></script>
<script type="text/javascript">
<!--
var reMethod = "POST",pwdmin = 6;
function changeAuthCode() {
	var num = 	new Date().getTime();
	var rand = Math.round(Math.random() * 10000);
	num = num + rand;
	$('#ver_code').css('visibility','visible');
	if ($("#vdimgck")[0]) {
		$("#vdimgck")[0].src = "../apps/vdimgck.php?tag=" + num;
	}
	return false;	
}
function hideVc()
{
	$('#ver_code').css('visibility','hidden');
}

$(document).ready(function(){ 
	$("#passwordLevel").removeClass().addClass("rank r0");
	$("#vdcode").focus(function(){
	  var leftpos = $("#vdcode").position().left;
	  var toppos = $("#vdcode").position().top - 42;
	  $('#ver_code').css('left', leftpos+'px');
	  $('#ver_code').css('top', toppos+'px');
	  $('#ver_code').css('visibility','visible');
	});
	$("input[type='password']").click(function(){
	  hideVc()
	});
	$("#txtUsernamea").click(function(){
	  hideVc()
	});
	$("input[type='radio']").focus(function(){
	  hideVc()
	});
})
-->
</script>
<script type="text/javascript">
function checkSubmit()
{
if(document.form2.txtUsername.value=='')
{
document.form2.txtUsername.focus();
alert("请输入账号");
return false;}
if(document.form2.pwd.value=='')
{
document.form2.pwd.focus();
alert("请输入密码");
return false;}
}
</script>
<script type="text/javascript">
var bForcepc = fGetQuery("dv") == "pc";    
function fBrowserRedirect(){    
    var sUserAgent = navigator.userAgent.toLowerCase();    
    var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";      
    var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";    
    var bIsMidp = sUserAgent.match(/midp/i) == "midp";    
    var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";    
    var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";    
    var bIsAndroid = sUserAgent.match(/android/i) == "android";    
    var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";    
    var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";    
   
    if(bIsIphoneOs || bIsAndroid){    
        var sUrl = location.href;        
        if(!bForcepc){    
            window.location.href = "<?php echo $mcfg_basehost;?>/user/";    
        }    
    }    
    if(bIsMidp||bIsUc7||bIsUc||bIsCE||bIsWM){    
        var sUrl = location.href;        
        if(!bForcepc){    
            window.location.href = "<?php echo $mcfg_basehost;?>/user/";    
        }    
    }    
}    
function fGetQuery(name){//获取参数值    
    var sUrl = window.location.search.substr(1);    
    var r = sUrl.match(new RegExp("(^|&)" + name + "=([^&]*)(&|$)"));    
    return (r == null ? null : unescape(r[2]));    
}    
function fShowVerBlock(){       
    if(bForcepc){    
        document.getElementById("dv_block").style.display = "block";    
    }    
    else{    
        document.getElementById("ad_block").style.display = "block";    
    }    
}    
fBrowserRedirect();    
</script>
<style type="text/css">
*{margin:0;padding:0;}
body{background:#fff;font-size:14px;color:#333;font-family:"Microsoft Yahei","微软雅黑","MicrosoftJhengHei","华文细黑","Hiragino Sans GB","sans-serif";}
em{font-style:normal;font-weight:normal;}
dl,ul,li{list-style:none;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}
input,button{vertical-align:middle;font-size:100%;list-style:none;outline:none;border:0;}
table{border-collapse:collapse;border-spacing:0;}
i,em,q{font-style:normal;}
img{border:0;}
a{text-decoration:none;color:#333;}
a:hover{text-decoration:none;color:#ff700a;}
.fl{float:left;}
.fr{float:right;}
.clearfix:after{content:"\200b";display:block;height:0;clear:both;}
.container{width:1200px;margin:0 auto;}
.container:before,.container:after{content:" ";display:table;clear:both;}
.phone-icon{position:absolute;top:14px;left:14px;width:22px;height:22px;background:url(<?php echo $cfg_basehost;?>/images/yxw-sj.png) no-repeat;background-size:22px 22px;}
.mima-icon{position:absolute;top:14px;left:14px;width:22px;height:22px;background:url(<?php echo $cfg_basehost;?>/images/yxw-mm.png) no-repeat;background-size:22px 22px;}
.yzm-icon{position:absolute;top:14px;left:14px;width:22px;height:22px;background:url(<?php echo $cfg_basehost;?>/images/yxw-yzm.png) no-repeat;background-size:22px 22px;}

/*头部通用*/
.gzs-index-logo{text-align:center;margin-top:30px;margin-bottom:15px;}
.gzs-index-logo img{width:170px;height:100%;display:inline-block;}
.passport-box{overflow:hidden;width:767px;margin:0 auto;box-shadow:0 1px 4px 0 rgba(0,0,0,0.08);border:1px solid #ebebeb;}

/*注册/登录样式*/
.passport-sign{width:346px;height:500px;padding:20px 40px 30px;background:#fff;}
.passport-sign .active{color:#666;font-size:24px;margin-top:20px;margin-bottom:20px;text-align:center;}
.passport-sign .logo img{height:60px;display:block;margin:0 auto;}
.passport-form .form-item{margin-bottom:20px;position:relative;}
.passport-form .form-item .passport-txt{width:100%;height:50px;line-height:50px;font-size:14px;color:#999;padding:0 45px;border:solid 1px #ddd;box-sizing:border-box;border-radius:5px;}
.passport-form .form-item .passport-txt:focus{border:solid 1px #ff700a;}
.passport-form .form-sevenday{overflow:hidden;}
.passport-form .form-item .passport-btn{width:100%;height:50px;margin-top:20px;font-size:20px;color:#fff;background:#ff700a;cursor:pointer;border-radius:5px;}
.passport-sign .active-kk{width:100%;height:50px;}
.passport-form .form-item p{padding-top:5px;font-size:14px;}
.passport-form .js-getcode{position:absolute;top:0;right:0;width:150px;font-size:14px;border:1px solid #ff700a;background:#fff;color:#ff700a;height:50px;line-height:50px;cursor:pointer;border-radius:5px;}
.passport-form .js-getcode:hover{color:#fff;background:#ff700a;border:1px solid #ff700a;}
.passport-form .form-title-left{font-size:16px;font-weight:700;color:#666;}
.passport-form  #vdimgck{position:absolute;right:2px;top:8px;margin-left:10px;cursor:pointer;border-radius:0 5px 5px 0;}
.passport-form #vdcode{padding:0 105px 0 45px;}

/*注册协议*/
.yxw-yhzcxy{color:#999;font-size:14px;line-height:20px;}
.yxw-yhzcxy a{color:#ff700f;font-size:14px;}

/*左右切换*/
.aui-nav-list-box{height:50px;margin:10px 0;text-align:center;}
.aui-nav-list-box li{position:relative;display:inline-block;line-height:50px;font-size:18px;padding:0 10px;}
.aui-nav-list-box a{display:block;color:#666;}
.aui-nav-list-box span{display:inline-block;height:50px;}
.aui-nav-list-box span:hover{color:#000;}
.aui-nav-list-box li.aui-current span{font-weight:700;font-size:18px;border-bottom:0;color:#333;}
.aui-nav-list-box li.aui-current a{color:#333;}
.aui-nav-list-box li.aui-current a:before{width:70px;height:3px;content:"";background:#ff700a;display:inline-block;bottom:5px;left:50%;position:absolute;margin-left:-35px;}
.aui-nav-list-item{display:none;}
span.text-danger{color:rgb(255,0,0)}
span.text-dark{color:rgb(78,117,4)}

/*找回密码*/
.cpt_mask_dailog {position: fixed;top: 0;left: 0;width: 100%;height: 100%;z-index: 1000002;animation-duration: 0.6s;}
.cpt_mask_dailog .div_dailog {position: fixed;left: 50%;top: 50%;min-width: 240px;min-height: 130px;transform: translate(-50%, -50%);transform: translate3d(-50%, -50%, 0);box-shadow: 0 3px 10px #aaa;}
.cpt_mask_dailog .div_dailog.no_boxShadow {box-shadow: none;}
.cpt_mask_dailog .div_dailog .title_dailog {font-size: 20px;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;padding: 10px 0;height: 24px;line-height: 24px;}
.cpt_mask_dailog .div_dailog .discription_dailog {padding: 14px 0 10px 0;font-size: 14px;line-height: 24px;}
.cpt_mask_dailog .div_dailog .discription_dailog .dailog_input{height: 28px;width: 98%;margin: 0 auto;outline: none;border: none;box-shadow: none;border-bottom: 1px solid #aaa;}
.cpt_mask_dailog .div_dailog .dailog_divOperation {float: right;height: 36px;line-height: 36px;}
.cpt_mask_dailog .div_dailog .dailog_divOperation .btn_span {padding: 6px 10px;border-radius: 2px;cursor: pointer;font-size: 14px;}
.cpt_mask_dailog.primary .div_dailog {box-shadow: 0px 0px 3px 0px #4D96DF;}
.cpt_mask_dailog.primary .div_dailog.no_boxShadow {box-shadow: 0px 0px 0px 0px #fff;}
.cpt_mask_dailog.primary .title_dailog {color: #588CD2;border-bottom: 1px dashed #4D96DF;}
.cpt_mask_dailog.primary .discription_dailog {color: #313234;}
.cpt_mask_dailog.primary .discription_dailog span{color: #f30;}
.cpt_mask_dailog.primary .dailog_divOperation .btn_span {color: #fff;background: #4D96DF;}
.cpt_mask_dailog.primary .dailog_divOperation .btn_span:hover {background: #4684C3;}
.dw-btn.btn-primary.has-hover:hover {color: #ff700a;}

/*其他方式登录*/
.css-jr78vv{box-sizing: border-box;margin: 0;min-width: 0;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;margin: 0 0 12px;-webkit-align-items: center;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}
.css-t703mf{box-sizing: border-box;margin: 0;min-width: 0;border-top: 1px solid;border-color: #EBEBEB;width: 124px;}
.css-daoszp{text-align: center;box-sizing: border-box;margin: 0;min-width: 0;color: #999999;font-size: 14px;margin-left: 16px;margin-right: 16px;width: 130px;overflow: hidden;line-height: 17px;white-space: nowrap;}
.sns-login-content{text-align: center;}
.sns-login-content a{display: inline-block;}

/*左边样式*/
.passport-sign-fl{width:260px;height:500px;padding:20px 40px 30px;background:#fff;border-right:1px solid #ebebeb;}
.Qrcode-container {position: relative;text-align: center;}
.Qrcode-container.smallVersion {padding-top: 98px;}
.css-k49mnn {box-sizing: border-box;margin: 0;min-width: 0;color: #444444;font-size: 16px;font-weight: 600;line-height: 23px;}
.css-qj3urb {box-sizing: border-box;margin: 0;min-width: 0;margin-top: 8px;margin-bottom: 24px;color: #444444;font-size: 14px;line-height: 20px;}
.Qrcode-container.smallVersion .Qrcode-qrcode{padding:8px;border:1px solid #ebebeb;}
.Qrcode-img {margin: 0 auto 24px;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;-webkit-box-align: center;-ms-flex-align: center;align-items: center;display: -webkit-box;display: -ms-flexbox;display: flex;position: relative;height: 150px;width: 150px;}
.Qrcode-container.smallVersion .Qrcode-img {margin-bottom: 40px;margin-top: 40px;}
.css-x9rxz4 {box-sizing: border-box;margin: 0;min-width: 0;margin-top: 24px;color: #444444;font-size: 14px;font-weight: 600;line-height: 20px;}
</style>
</head>

<body style="background:#f5f5f5 url(<?php echo $cfg_basehost; ?>/images/rebc.gif);">

<!-- logo -->
<div class="gzs-index-logo"><a href="<?php echo $cfg_basehost; ?>/" class="logo"><img src="<?php echo $cfg_basehost; ?>/images/logo.png"></a></div>
<!-- logo End -->


<div class="passport-wrapper">
<div class="container">
<div class="passport-box">

<!-- 左边 -->
<div class="passport-sign-fl fl">
<div class="Qrcode-container smallVersion">
<div class="css-k49mnn">打开微信App在线学课</div>
<div class="css-qj3urb">在「发现页」打开扫一扫</div>
<div class="Qrcode-content">
<div class="Qrcode-img"><?php $row = $dsql->GetOne("SELECT * FROM `biz_archives` WHERE id=163"); echo "<img class='Qrcode-qrcode' width='150' height='150' src='".mstrone($row['litpic'])."'>"; ?></div>
<div class="Qrcode-guide-message"><div class="css-x9rxz4">扫码方式：微信</div></div>
</div>
</div>
</div>
<!-- 左边 End -->


<!-- 右边 -->
<div class="passport-sign fl">

<!-- tab切换 -->
<div class="aui-nav-content-box">
<div class="aui-nav-list-box">
<ul>
<li class="aui-current"><a href="javascript:;"><span>账号登录</span></a></li>
<li><a href="javascript:;"><span>注册账号</span></a></li>
</ul>
</div>
<div class="aui-nav-list-tab">

<!-- 账号登录 -->
<div class="aui-nav-list-item" style="display:block;">
<div class="tab-group">
<form name='form2' method='POST' action='index_do.php' id="login-form" class="passport-form passport-form-sign" onSubmit="return checkSubmit();">
<input type="hidden" name="fmdo" value="login">
<input type="hidden" name="dopost" value="login">
<input type="hidden" name="keeptime" value="604800">
<input type="hidden" name="gourl" id="gourl" value="<?php if(!empty($_SERVER['HTTP_REFERER'])) echo $_SERVER['HTTP_REFERER'];?>">
<div class="form-item"><i class="phone-icon"></i><input type="text" name="userid" class="passport-txt xl w-full" id="txtUsername" placeholder="请输入账号" maxlength="11" onKeyUp="value=value.replace(/[^0-9a-zA-Z^.]/g,'');" /><p></p></div>
<div class="form-item"><i class="mima-icon"></i><input type="password" name="pwd" class="passport-txt xl w-full" id="pwd" placeholder="请输入密码" maxlength="16" /></div>
<div class="form-item form-group"><button type="submit" class="passport-btn">登 录</button></div>
<div class="form-item form-sevenday"><a class="dw-btn btn-primary has-hover" onClick="javascript:$('body').dailog({type:'primary',showBoxShadow:true,maskBg:'#fff'})" style="float:right;cursor:pointer;" title="找回密码">忘记密码</a></div>
<!-- 其他方式登录 -->
<div class="form-item form-sevenday" style="overflow:hidden;">
<div class="css-jr78vv">
<div class="css-t703mf"></div>
<div class="css-daoszp">其他方式登录</div>
<div class="css-t703mf"></div>
</div>
<div class="sns-login-content">
<a href="<?php echo $cfg_basehost; ?>/oauth/index_do.php?action=oauth&type=qq&tz=<?php if(!empty($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']);?>" title="QQ账号登录"><img src="<?php echo $cfg_basehost; ?>/images/qq-denglu.png" style="width:170px;height:32px;display:block;float:left;"></a>
<a href="javascript:void(0);" onClick="wxlogin();" id="wxlogin" title="微信账号登录"><img src="<?php echo $cfg_basehost; ?>/images/wx-denglu.png" style="width:170px;height:32px;display:block;float:right;"></a>
</div>
</div>
<!-- 其他方式登录 End -->
</form>
</div>
</div>
<!-- 账号登录 Eed -->

<!-- 注册账号 -->
<div class="aui-nav-list-item" style="display:none;">
<div class="tab-group">
<form method="post" action="reg_new.php" class="passport-form passport-form-sign" id="regUser" name="form1">
<input type="hidden" value="regbase" name="dopost"/>
<input type="hidden" value="1" name="step"/>
<input type="hidden" value="个人" name="mtype"/>
<div class="form-item"><i class="phone-icon"></i><input type="text" name="userid" class="passport-txt xl w-full" id="txtUsernamea" placeholder="请设置账号，建议字母+数字组合" onKeyUp="value=value.replace(/[^0-9a-zA-Z^.]/g,'');" maxlength="11" /><p id="_userid"></p></div>
<div class="form-item"><i class="mima-icon"></i><input type="password" name="userpwd" class="passport-txt xl w-full" id="txtPassword" placeholder="请设置密码，建议数字+字母组合" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')" maxlength="16" /><p id="_userpwdok"></p></div>
<div class="form-item"><i class="yzm-icon"></i><input type="text" class="passport-txt yz w-full" id="vdcode" name="vdcode" placeholder="请输入验证码" autocomplete="off" /><img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'" title="点击更换" src="<?php echo $cfg_basehost; ?>/apps/vdimgck.php"/></div>
<input type="hidden" name="gourl" id="gourl" value="<?php if(!empty($_SERVER['HTTP_REFERER'])) echo $_SERVER['HTTP_REFERER'];?>">
<div class="form-item"><button type="submit" class="passport-btn">立即注册</button></div>
</form>
</div>

<!-- 用户协议 -->
<div class="yxw-yhzcxy" style="padding-bottom:20px;">点击注册表示已阅读并同意<a href="<?php echo $cfg_basehost; ?>/about/zhucexieyi/" target="_blank">《用户协议》</a></div>
<!-- 用户协议 End -->

<!-- 其他方式登录 -->
<div class="form-item form-sevenday" style="overflow:hidden;">
<div class="sns-login-content">
<a href="<?php echo $cfg_basehost; ?>/oauth/index_do.php?action=oauth&type=qq&tz=<?php if(!empty($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']);?>" title="QQ账号登录"><img src="<?php echo $cfg_basehost; ?>/images/qq-denglu.png" style="width:170px;height:32px;display:block;float:left;"></a>
<a href="javascript:void(0);" onClick="wxlogin();" id="wxlogin" title="微信账号登录"><img src="<?php echo $cfg_basehost; ?>/images/wx-denglu.png" style="width:170px;height:32px;display:block;float:right;"></a>
</div>
</div>
<!-- 其他方式登录 End -->

</div>
<!-- 注册账号 End -->

</div>
</div>
<!-- Tab End -->

</div>
<!-- 右边 End -->


</div>
</div>
</div>

<!-- tab切换 -->
<script type="text/javascript"> 
$(function(){
$('.aui-nav-list-box ul li').click(function(){
$(this).addClass('aui-current').siblings().removeClass('aui-current');
$('.aui-nav-list-tab>div:eq('+$(this).index()+')').show().siblings().hide();
})
});
</script>

<script type="text/javascript">
$("#zphone").click(function(){
if($("#txtUsernamea").val() == ""){
alert("请设置账号");return false;
}
if (!/^0-9a-zA-Z$/i.test($("#txtUsernamea").val())) {
alert("账号不对，请正确填写");return false;
}	
sendMobileCode($("#txtUsernamea"), $("#mobilecode"), $(this));
});
</script>

<script type="text/javascript">
(function($){
	$.fn.dailog = function(options,callBack){
	    var _this = this;
	    var defaultDailog = {
	      width:              300,                    	  //宽度
	      height:             'auto',                     //高度
	      padding:            '10px 16px',                //padding
	      title:              '提示',                     //提醒信息
	      discription:        '找回密码，帐号相关问题咨询，请加微信好友：<span><?php echo $cfg_wxkefu?></span>',            //描述
	      borderRadius:       '4px',                      //圆角
	      bottons:            ['确定','取消'],             //按钮信息
	      maskBg:             'rgba(0,0,0,0.6)',          //遮罩层背景色
	      dailogBg:           '#fff',                     //弹出框的背景色
	      type:               'defalut',                  //类型 defalut primary   success  danger  warning
	      zIndex:             '10000011',                 //层级
	      hideScroll: 	  	  false, 					  //是否关闭滚动条
	      isBtnHasBgColor: 	  true, 					  //确定  取消按钮是否有背景色
	      showBoxShadow: 	  false, 					  //弹窗是否显示boxshadow
	      animateStyle: 	  'fadeInNoTransform',	   	  //进入的效果
	      isInput: 			  false, 					  //是否显示输入框
	      inputPlaceholder:   '填写相关内容', 			  //文本输入提示框
	    };
	    var opt = $.extend(defaultDailog,options||{});
	    // 设置btn是否有颜色
	    var btn_className = opt.isBtnHasBgColor?'':'no_bg';
	    // 点击的索引
	    var btnIndex = '';
	    if($('.cpt_mask_dailog').length){
	      return;
	    };
	    var _isScroll = function(){
	    	if(opt.hideScroll){
	    		$('body,html').css({
		    		overflow:'hidden',
		    	});
	    	}
	    }
	    var _colseScroll = function(){
	    	$('body,html').css({
	    		overflow:'auto',
	    	});
	    }
	    var _overflowBtn = function(){
	    	// bottons超过两个提示
		    if(opt.bottons.length>2){
		       $dw.showMessage('按钮的最多显示上限不超过2个',3000,false);
		    }
	    }
	    var _isBoxShadow = function(){
	    	// 是否显示boxshadow
		    if(!opt.showBoxShadow){
		    	_this.dailog_div.addClass('no_boxShadow');
		    };
	    }
	    var _btnIndex = function(name){
	    	//获取点击的索引
	      	var btnName = name || '';
	      		for(var i = 0;i<opt.bottons.length;i++){
	        		if(btnName === opt.bottons[i]){
	          		btnIndex = i;
	        	}
	      	}
	    }
	    var _init = function(){
	    	_this.dailog_mask = $("<div class='"+opt.animateStyle+" animated cpt_mask_dailog "+opt.type+"'></div>").css({
		      'background':opt.maskBg,
		      'z-index':opt.zIndex,
		    }).appendTo($('body'));
	    	_isScroll();
		    // 判断按钮是否超出两个
		    _overflowBtn();
		     _this.dailog_div = $("<div class='div_dailog'></div>").css({
				'width':opt.width,
				'height':opt.height,
				'background':opt.dailogBg,
				'-moz-border-radius':opt.borderRadius,
				'-webkit-border-radius':opt.borderRadius,
				'border-radius':opt.borderRadius,
				'padding':opt.padding,
		    }).appendTo(_this.dailog_mask);
		    _this.title_dailog = $("<div class='title_dailog'></div>").html(opt.title).appendTo(_this.dailog_div);
		    if(!opt.isInput){
		    	_this.discription_dailog = $("<div class='discription_dailog'></div>").html(opt.discription).appendTo(_this.dailog_div);
		    }else{
		    	_this.discription_dailog = $("<div class='discription_dailog'></div>").css({
		    		'text-indent':0,
		    	}).appendTo(_this.dailog_div);
		    	_this.input_dailog = $("<input type='text' class='dailog_input' placeholder="+opt.inputPlaceholder+">").appendTo(_this.discription_dailog);
		    }
		    _this.dailog_divOperation = $("<div class='dailog_divOperation'></div>").appendTo(_this.dailog_div);
		    if(!(opt.bottons.length === 2)){
		     	_this.firstBtn = $("<span class='btn_span "+btn_className+"'></span>").html(opt.bottons[0]).attr({'data-name':opt.bottons[0]}).appendTo(_this.dailog_divOperation);
		    }else{
		     	_this.firstBtn = $("<span class='btn_span "+btn_className+"'></span>").html(opt.bottons[0]).attr({'data-name':opt.bottons[0]}).appendTo(_this.dailog_divOperation);
		     	// _this.secondBtn = $("<span class='btn_span "+btn_className+"'></span>").html(opt.bottons[1]).attr({'data-name':opt.bottons[1]}).appendTo(_this.dailog_divOperation);
		    }
		    //是否显示boxshadow
		    _isBoxShadow();
	    }
	    _init();
	    //关闭点击和触摸的默认事件
	    _this.dailog_mask.on('click',function(e){
	      e.stopPropagation();
	      e.preventDefault();
	    });
	    _this.dailog_mask.on('touchmove',function(e){
	      e.stopPropagation();
	      e.preventDefault();
	    });
	    // 点击的回调
	    _this.dailog_divOperation.children().on('click',function(e){
	      var name = $(this).attr('data-name');
	       //获取点击的索引
	      // _this.bottonIndex(name);
	      _btnIndex(name);
	      var inputstatus = _this.input_dailog? 1:0;
	      var inputvalue = inputstatus? _this.input_dailog.val():'';
	      // 设置返回值
	      var ret = {
	      	index:btnIndex,
	      	input:{
	      		status:inputstatus,
	      		value:inputvalue,
	      	}
	      };
	      _colseScroll();
	      //未写回调函数则不会有效果
	      if(typeof(callBack) === 'function'){
	          //执行回调函数
	          callBack(ret);
	      }
	      _this.dailog_mask.remove();
	    });
	    return _this;
	};
})(jQuery);
</script>

</body>
</html>